package Demo.Interfaces;

/**
 * @className: Person
 * @author: 芃
 * @description:
 * @date: 2023/8/17 15:14
 */
public class Person implements Cloneable{
    public int age;
    public String name;
    public String sex;

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public Person(int age, String name, String sex) {
        this.age = age;
        this.name = name;
        this.sex = sex;
    }
}
